-- GENERATED SPELL FOR [Shattered Hand Warhound] --


function spell0_17280(pUnit, Event) --@Carnivorous Bite,n/a--
pUnit:FullCastSpellOnTarget(30639,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17280', 15000, 1)
end

function spell1_17280(pUnit, Event) --@Furious Howl,n/a--
pUnit:FullCastSpellOnTarget(30636,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17280', 10000, 1)
end

function Sorts_17280(pUnit, Event)
local choix_sorts_17280 = math.random(0, 1)
if choix_sorts_17280 == 0 then
pUnit:RegisterEvent('spell0_17280', 1, 1)
end
if choix_sorts_17280 == 1 then
pUnit:RegisterEvent('spell1_17280', 1, 1)
end
end

function mob17280_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17280', math.random(1500, 3000), 1)
end

function mob17280_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17280_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17280_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17280, 1, 'mob17280_Action')
RegisterUnitEvent(17280, 2, 'mob17280_Leave')
RegisterUnitEvent(17280, 3, 'mob17280_Kill')
RegisterUnitEvent(17280, 4, 'mob17280_Die')
